//
//  TMConversationController.m
//  国学培训用户端
//
//  Created by Tao Li on 2018/8/30.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMConversationController.h"
#import "TMHomeViewModel.h"
@interface TMConversationController ()<RCIMUserInfoDataSource>
@property (nonatomic, strong) TMHomeViewModel *viewModel;
@end

@implementation TMConversationController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.viewModel = [[TMHomeViewModel alloc]init];
    [[RCIM sharedRCIM] setUserInfoDataSource:self];
}
- (void)getUserInfoWithUserId:(NSString *)userId completion:(void (^)(RCUserInfo *))completion{
    
    [self.viewModel getChatInformationWith:[userId integerValue] Success:^(id responseObject) {
        
    } failed:^(NSString *error) {
        
    }];
    
    RCUserInfo *infor = [[RCUserInfo alloc]initWithUserId:userId name:nil portrait:nil];
    completion(infor);
}


@end
